#pragma once
#include "Vector3.h"
#include "MyMath.h"

enum MonsterState{
	IDLE = 0,
	ATTACK,
	CHASE,
	RETURN,
	DIE
};

class CHunter;

class CMonster
{
public:
	CMonster(CHunter *theHunter);
	~CMonster();

	void Init();

	int getHP();
	int getDistFromHunter();
	Vector3 getPosition();
	MonsterState getState();
	bool isActive();

	void setHP(int);
	void setActive(bool);

	void Update();
	void render();

	void setCurrentState(MonsterState State);

private:
	int hp, lastAtkTime;
	Vector3 position, originalPos;
	CHunter *theHunter;
	float distFromHunter;
	MonsterState state;
	bool active;

	void updateState();
};